package com.peace.hospital.entity.drugstorage;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 调拨表
 * </p>
 *
 * @author xie
 * @since 2019-11-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Transfer implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 调拨id
     */
    @TableId(value = "traid", type = IdType.AUTO)
    private Integer traid;

    /**
     * 医院员工ID
     */
    private Integer staid;

    /**
     * 初始地药房ID
     */
    private Integer startid;

    /**
     * 目的地药房ID
     */
    private Integer endid;

    /**
     * 调拨日期
     */
    private LocalDateTime tradate;

    /**
     * 数量
     */
    private Integer tranum;

    /**
     * 数据库名称
     */
    private String tradbsource;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getTraid() {
        return traid;
    }

    public void setTraid(Integer traid) {
        this.traid = traid;
    }

    public Integer getStaid() {
        return staid;
    }

    public void setStaid(Integer staid) {
        this.staid = staid;
    }

    public Integer getStartid() {
        return startid;
    }

    public void setStartid(Integer startid) {
        this.startid = startid;
    }

    public Integer getEndid() {
        return endid;
    }

    public void setEndid(Integer endid) {
        this.endid = endid;
    }

    public LocalDateTime getTradate() {
        return tradate;
    }

    public void setTradate(LocalDateTime tradate) {
        this.tradate = tradate;
    }

    public Integer getTranum() {
        return tranum;
    }

    public void setTranum(Integer tranum) {
        this.tranum = tranum;
    }

    public String getTradbsource() {
        return tradbsource;
    }

    public void setTradbsource(String tradbsource) {
        this.tradbsource = tradbsource;
    }

    @Override
    public String toString() {
        return "Transfer{" +
                "traid=" + traid +
                ", staid=" + staid +
                ", startid=" + startid +
                ", endid=" + endid +
                ", tradate=" + tradate +
                ", tranum=" + tranum +
                ", tradbsource='" + tradbsource + '\'' +
                '}';
    }
}
